package com.erlang.exception;

/**
 * 功能描述：自定义异常类
 *
 * @author ZGQ
 */

public class MyException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    /* 状态码 */
    private String code;
    /* 异常信息 */
    private String msg;

    public MyException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
